﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="column_all.aspx.cs" Inherits="admin_infomation_column_all" %>
<!DOCTYPE HTML PUBLIC "-//w3c//dtd html 4.0 transitional//en">
<html>
	<head runat="server">
		<title>Lomboz JSP</title>
		<link href="../css/default.css" rel="stylesheet" type="text/css" />
        <link rel="StyleSheet" href="../js/dtree.css"	type="text/css" />
		<script type="text/javascript" src="../js/dtree.js"></script>

	</head>
	<body bgcolor="#FFFFFF">
    <table width=100% height="600" border="0" align="left" cellpadding="0"
			cellspacing="0" bgcolor="#FFFFFF">
			<tr>
			<td height="413" valign="top">
					<table border="0" cellpadding="0" cellspacing="0">
						<tr>
							<td height="32" valign="bottom">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td width="30" align="center">
											<img src="../images/icon_channel.gif" width="12"
												height="12" />
										</td>
										<td align="left" width="154">
											内容管理
										</td>
									</tr>
								</table>
							</td>
						</tr>
						<tr>
							<td height="12"></td>
						</tr>
						<tr>
							<td height="1" bgcolor="#AB8C78"></td>
						</tr>
						<tr>
							<td height="2" bgcolor="#C0B9AF"></td>
						</tr>
						<tr>
							<td>
								&nbsp;
							</td>
						</tr>
						<tr>
							<td valign="top">
								<table border="0" cellspacing="0" cellpadding="0">
                                    <tr>
										<td>
<script type="text/javascript">
managertree = new dTree('managertree');
managertree.config.useCookies = true;
managertree.add(1,-1,'内容管理','','','mainFrame');
<%
for(int i=0;i<datalist.Count;i++){
OgilvyOne.Model.UserColumnModel uc = (OgilvyOne.Model.UserColumnModel)datalist[i];
int columnid= uc.Columnid;
string linkurl = "columnExplain.aspx?columnid=" + columnid + "&layerid=" + uc.Layerid;

if(uc.Columnurl!=null && uc.Columnurl!=""){
	linkurl = uc.Columnurl ;
	if(linkurl.IndexOf("?")>-1){
	    linkurl += "&" ;
	}else{
	    linkurl += "?";
	}
	linkurl += "columnid=" + columnid +"&layerid=" + uc.Layerid;
}
if(!isDynamicPopedom()){
if(PopedomValidateHtml(uc.Layerid,"show")){
     if (uc.Parentid==0){%>
	managertree.add(<%=columnid%>,0,'<%=uc.Columnname.Replace("'","\\'")%>','<%=linkurl%>','','mainFrame');
   <% }else{%>
	managertree.add(<%=columnid%>,<%=uc.Parentid%>,'<%=uc.Columnname.Replace("'","\\'")%>','<%=linkurl%>','','mainFrame');
	<%}%>
	if(managertree.getSelected()==1) window.open('<%=linkurl%>','mainFrame');
	<%}
}else{
    if (uc.Parentid==0){%>
	managertree.add(<%=columnid%>,0,'<%=uc.Columnname.Replace("'","\\'")%>','<%=linkurl%>','','mainFrame');
   <% }else{%>
	managertree.add(<%=columnid%>,<%=uc.Parentid%>,'<%=uc.Columnname.Replace("'","\\'")%>','<%=linkurl%>','','mainFrame');
	<%}%>
	if(managertree.getSelected()==1) window.open('<%=linkurl%>','mainFrame');
	<%
}
}
%>
document.write(managertree);
</script>

											<br>
											<br>
										</td>
									</tr>
									<tr>
										<td height="35"></td>
									</tr>
								</table>
							</td>
						</tr>
						<tr>
							<td align="center" valign="top">
								<p>
									&nbsp;
								</p>
								<p>
									&nbsp;
								</p>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>


	</body>
</html>

